package com.lambda;

public final class ObjectMethodUse {

    public int getResult(){
        return 8;
    }

    public int addResult(int a,int b){
        return a+b;
    }

    public String stringConvert(int n,String str){
        switch (n){
            case 0:
                str="Welcome:"+str;
                break;
            case 1:
                str="GoodBye:"+str;
                break;
        }
        return str;
    }
}
